package com.fast.develop.configuration.persistence;

import com.fast.develop.core.io.db.DbResource;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;

/**
 * @author 莫寅
 * @createTime 2022-06-23 12:52
 * @desc：
 */
@Entity(name = "resource_file")
public class ResourceFileEntity implements DbResource {

    @Id
    private String id;
    private String path;
    private String name;
    @Lob
    private String content;
    @Column(name = "is_folder")
    private boolean isFolder;

    @Override
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String getContent() {
        return content;
    }


    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public boolean isFolder() {
        return isFolder;
    }

    public void setFolder(boolean folder) {
        isFolder = folder;
    }
}
